Auto merge of #5249 - alexcrichton:run-rustc-less, r=matklad
authorbors <bors@rust-lang.org>
Tue, 27 Mar 2018 13:58:26 +0000 (13:58 +0000)
committerbors <bors@rust-lang.org>
Tue, 27 Mar 2018 13:58:26 +0000 (13:58 +0000)
commitca7c19c40e5a8281e71d4e2017fe5f944ba2c9eb
treeb83cf2712df7ee400f87259609f736abb4a3e7cd
parent6b8d5899538a060909e791af74ac7d993261af24
parent0eb7edf5b4cb252f5415e20081eb643bd91cbc9b
Auto merge of #5249 - alexcrichton:run-rustc-less, r=matklad

Run `rustc` for information fewer times

Currently if you pass `--target` the same as rustc's host Cargo will run `rustc`
on extra time to learn information, but we only need to run it once to learn
such information!
src/cargo/ops/cargo_rustc/context/mod.rs